package com.whmskj.xjlhbc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whmskj.xjlhbc.domain.SchedulingOfSbbx01MalfunctionRep;
import com.whmskj.xjlhbc.vo.EveryDayWxRecordVo;
import com.whmskj.xjlhbc.vo.GhGzPjRecordVo;
import com.whmskj.xjlhbc.vo.GzTjVo;
import com.whmskj.xjlhbc.vo.GzinfoRecordVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface SchedulingOfSbbx01MalfunctionRepMapper extends BaseMapper<SchedulingOfSbbx01MalfunctionRep> {


    List<GzTjVo> selectGzTjList(@Param("startTime") String startTime,
                                @Param("endTime") String endTime,
                                @Param("workshop") String workshop);

    /**
     * 更换故障配件记录
     * @param startTime
     * @param endTime
     * @return
     */
    List<GhGzPjRecordVo> selectGhGzPjRecordVoList(@Param("startTime") String startTime, @Param("endTime") String endTime);

    /**
     * 每日维修记录
     * @param time
     * @return
     */
    List<EveryDayWxRecordVo> selectEveryDayWxRecordVo(String time);

    /**
     * 故障详情记录
     * @param id
     * @return
     */
    GzinfoRecordVo selectGzinfoRecordVo(Integer id);

    /**
     * 添加故障维修记录
     * @param body
     * @return
     */
    int insertGz(SchedulingOfSbbx01MalfunctionRep body);

    int updateGzById(SchedulingOfSbbx01MalfunctionRep body);
}
